<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜单列表</title>
<link href="__PUBLIC__/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="{:U('index/welcome')}">首页</a></li>
			<li><a href="{:U('menuinfo/index')}">菜单列表</a></li>
			<li><a href="{:U('menuinfo/index',array('menu_id'=>$father_menuinfo['menu_fatherid']))}">{$father_menuinfo.menu_title}</a></li>
		</ul>
    </div>
    
    <div class="formbody">
		<ul class="toolbar">
			<li onclick="location.href = '{:U('menuinfo/addmenuinfo',array('menu_fatherid'=>$father_menuinfo['menu_id']))}'"><span><img src="__PUBLIC__/admin/images/t01.png" /></span>添加菜单</li> 
		</ul> 
		<form name="seachform" id="seachform" action="{:U('menuinfo/index')}" method="post">
			<ul class="seachform">
				<input name="info[menu_id]" id="menu_id" value="{$father_menuinfo.menu_id}" type="hidden" class="scinput" />
				<li><label>综合查询</label><input name="info[keyword]" id="keyword" value="{$keyword}" type="text" class="scinput" /></li>		
				<li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
			</ul>
		</form>
		
		<table class="tablelist">
			<thead>
				<tr>
					<th><input name="" type="checkbox" value="" /></th>
					<th>编号</th>
					<th>菜单名</th>
					<th>菜单类型</th>
					<th>控制器</th>
					<th>方法</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<volist name="listinfo" id="menuinfo">
				<tr>
					<td><input name="" type="checkbox" value="" /></td>
					<td>{$menuinfo.menu_id}</td>
					<td>{$menuinfo.menu_title}</td>
					<td>
						<if condition="$menuinfo['menu_type'] eq 1 ">顶部菜单
						<elseif condition="$menuinfo['menu_type'] eq 2 "/>左侧一级菜单
						<elseif condition="$menuinfo['menu_type'] eq 3 "/>左侧二级菜单
						<elseif condition="$menuinfo['menu_type'] eq 4 "/>操作菜单
						</if>
					</td>
					<td>{$menuinfo.menu_controller}</td>
					<td>{$menuinfo.menu_action}</td>
					<td>
						<a href="{:U('menuinfo/index',array('menu_id'=>$menuinfo['menu_id']))}" class="tablelink">查看下级菜单</a>
						<a href="{:U('menuinfo/editmenuinfo',array('menu_id'=>$menuinfo['menu_id']))}" class="tablelink">编辑</a>
						<a href="{:U('menuinfo/delmenuinfo',array('menu_id'=>$menuinfo['menu_id']))}" onclick="{if(confirm('确认删除?')){return true;}return false;}" class="tablelink">删除</a>
					</td>
				</tr> 
				</volist>
			</tbody>
		</table>

		{$pageshow}

    </div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>

</html>
